export interface IPagerOrderBy {
  field: string;
  isDesc: boolean;
}

export interface IPagerSearch {
  key: string;
  op: string;
  value: string;
}

export interface IPager<T> {
  total: number;
  pageNo: number;
  pageSize: number;
  search?: IPagerSearch[];
  orderBy?: IPagerOrderBy[];
  list: T[];
  extras?: any[];
}

export interface IPagerParams {
  pageNo?: number;
  pageSize?: number;
  search?: IPagerSearch[];
  orderBy?: IPagerOrderBy[];
}
